import Vue from 'vue'
import 'element-ui/lib/theme-chalk/index.css'
import {
    Button,
    Row,
    Col,
    RadioGroup,
    ButtonGroup,
    MenuItem,
    Table,
    TableColumn,
    Menu,
    Form,
    FormItem,
    Input,
    Select,
    Steps,
    Step,
    TimeSelect,
    Option,
    Main,
    PageHeader,
    Header,
    Aside,
    Container,
    Upload,
    Dialog,
    Image,
    Checkbox,
    Radio,
    Pagination,
    Message,
    MessageBox,
    CheckboxButton,
    CheckboxGroup,
    DatePicker,
    Breadcrumb,
    BreadcrumbItem,
    Card,
    Footer,
    Tooltip,
    Submenu,
    TabPane,
    Badge,
    Popover,
    Tag,
    Alert,
    Tabs,
    TimePicker,
    Dropdown,
    DropdownMenu,
    DropdownItem,
    Loading,
    Avatar,
} from 'element-ui'

Vue.use(Button);
Vue.use(Dialog);
Vue.use(ButtonGroup);
Vue.use(Input)
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Tabs);
Vue.use(TabPane);
Vue.use(Tag);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(DatePicker);
Vue.use(TimeSelect);
Vue.use(TimePicker);
Vue.use(Row);
Vue.use(Col);
Vue.use(RadioGroup);
Vue.use(MenuItem);
Vue.use(Menu);
Vue.use(Select);
Vue.use(Option);
Vue.use(Main);
Vue.use(PageHeader);
Vue.use(Header);
Vue.use(Container);
Vue.use(Aside);
Vue.use(Upload);
Vue.use(Image);
Vue.use(Checkbox);
Vue.use(Radio);
Vue.use(CheckboxButton);
Vue.use(CheckboxGroup);
Vue.use(DatePicker);
Vue.use(Breadcrumb);
Vue.use(BreadcrumbItem);
Vue.use(Card);
Vue.use(Footer);
Vue.use(Tooltip);
Vue.use(Steps);
Vue.use(Step);
Vue.use(Tabs);
Vue.use(TabPane);
Vue.use(Badge);
Vue.use(Popover);
Vue.use(Tag);
Vue.use(Submenu);
Vue.use(Alert);
Vue.use(Pagination);

Vue.use(Loading.directive);

Vue.use(Loading);
Vue.use(Pagination);


Vue.use(TimePicker);
Vue.use(Dropdown);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Avatar);
Vue.prototype.$loading = Loading.service;
Vue.prototype.$message = Message;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$alert = MessageBox.alert;
export default Vue.prototype.$message;